from flask import Flask,render_template
from flask.views import MethodView

app = Flask(__name__)

@app.route('/')
def index():
    return 'Hello Flask'

class LoginView(MethodView):
    def get(self):
        return render_template('index04.html')

    def post(self):
        pass

app.add_url_rule('/login/',view_func=LoginView.as_view('login'))
if __name__ == '__main__':
    app.run(debug=True)